<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType = "text/html; charset=UTF-8" %>

<html>
<head>
<c:set var="cssFileName">
	<c:out value="${crudViewMeta.cssFileName}" default="default.css"/>
</c:set>
<link rel="stylesheet" href="<c:url value='/css/${cssFileName}'/>" type="text/css">

<title><c:out value="${crudMeta.title}"/>数据删除确认页面</title>
</head>
<body>

<spring:bind path="command.*">
  <c:forEach var="error" items="${status.errorMessages}">
    <B><FONT color=RED>
      <BR><c:out value="${error}"/>
    </FONT></B>
  </c:forEach>
</spring:bind>

<table class="top" align="center">
	<tr><td class="headtitle"><c:out value="${crudMeta.title}"/>数据删除确认</td></tr>
</table>

<form name="listForm" action="<c:url value='/deleteSingle.do'/>" method="POST"/>
	<input type="hidden" name="name" value="<c:out value='${crudMeta.beanName}'/>"/>
	<c:forEach items="${crudMeta.otherWantedParameters}" var="wantedParam">
		<input type="hidden" name="<c:out value='${wantedParam}'/>" value="<c:out value='${param[wantedParam]}'/>">
	</c:forEach>
	
<table class="content">
	<c:forEach items="${crudMeta.columnMetas}" var="col">
	  	<tr class="body">
	  		<td class="head"><c:out value="${col.title}"/></td>
	  		<td>
				<c:if test="${empty col.dictName || !col.needDictReplace}">
	  				<c:out value="${command.mapContent[col.colName]}"/>
	  			</c:if>
	  			<c:if test="${not empty col.dictName && col.needDictReplace}">
	  				<c:out value="${col.dictMap[command.mapContent[col.colName]]}"/>
	  			</c:if>
	  			<c:if test="${!col.derived}">
					<spring:bind path="command.mapContent[${col.colName}]">
						<input type="hidden" 
							name="<c:out value='${status.expression}'/>" 
							value="<c:out value='${status.value}'/>">
					</spring:bind>
				</c:if>				
			</td>	
      	</tr>
	</c:forEach>	
</table>

<br>
	
<table>
	<tr align="center" valign="center">
		<td align="left" width="50%">
			<input type="submit" name="save" value="确认删除">
			<input type="button" name="back" value="返回" onclick="javascript:window.history.back()">
		</td>
		<td width="50%">
		</td>
	</tr>
</table>
 	
</form>
</body>
</html>